package com.ruoyi.questions.domain;

import java.util.List;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 题库管理对象 questions
 * 
 * @author shz
 * @date 2024-09-12
 */
@Data
public class Questions extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 题目id */
    private Long id;

    /** 题目描述 */
    @Excel(name = "题目描述")
    private String description;

    /** 正确答案 */
    @Excel(name = "正确答案")
    private String rights;

    /** 题目类型 */
    @Excel(name = "题目类型")
    private Long type;

    /** 选项信息 */
    private List<Xuanze> xuanzeList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }

    public List<Xuanze> getXuanzeList()
    {
        return xuanzeList;
    }

    public void setXuanzeList(List<Xuanze> xuanzeList)
    {
        this.xuanzeList = xuanzeList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("description", getDescription())
            .append("type", getType())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("xuanzeList", getXuanzeList())
            .toString();
    }
}
